package com.xujie.sportsmeeting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xujie.sportsmeeting.entity.Athlete;
import org.apache.ibatis.annotations.Mapper;

/**
 * 运动员Mapper接口
 * 继承BaseMapper，自动拥有基础CRUD操作
 */
@Mapper
public interface AthleteMapper extends BaseMapper<Athlete> {
    
    // MyBatis-Plus已经提供了所有基础的CRUD方法
    // 如需复杂查询，可以使用LambdaQueryWrapper
    // 例如：
    // LambdaQueryWrapper<Athlete> wrapper = new LambdaQueryWrapper<>();
    // wrapper.eq(Athlete::getStudentNumber, studentNumber);
    // Athlete athlete = selectOne(wrapper);
}
